package dao

import "vtrip/internal/model"

func (d *Dao) FindAllTourismType() ([]*model.TourismTypePart, error) {
	tourismType := &model.TourismType{}
	return tourismType.All(d.engine)
}

func (d *Dao) AddTourismType(name string) error {
	tourismType := &model.TourismType{
		Name: name,
	}
	return tourismType.Create(d.engine)
}
